Skip to content

feat: add prometeus metrics - #192

Draft
JGodin-C2C wants to merge 1 commit into
voxpupuli:mainfrom
camptocamp:add_prometheus_metrics
Draft

JGodin-C2C wants to merge 1 commit into
voxpupuli:mainfrom
camptocamp:add_prometheus_metrics

Conversation

@JGodin-C2C

Copy link
Copy Markdown

This patch add prometeus exposed metrics

Coded with the help of AI.

@JGodin-C2C
JGodin-C2C marked this pull request as draft November 3, 2026 08:59
@jay7x

jay7x commented Nov 3, 2026

Copy link
Copy Markdown
Member

Looks like you forgot to git add some *.go file :)

This patch add prometeus exposed metrics

Coded with the help of AI.

Signed-off-by: Julien Godin <julien.godin@camptocamp.com>
@JGodin-C2C
JGodin-C2C force-pushed the add_prometheus_metrics branch from 41fd342 to 7c1538f Compare November 3, 2026 10:43
@JGodin-C2C

Copy link
Copy Markdown
Author

I may or may not doubtfully not push the commit in which the not-added files may or may not have been.

@sebastianrakel sebastianrakel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thank you for the PR, nice feature, was on todo since day 1

but found this https://prometheus.io/docs/prometheus/latest/configuration/configuration/#puppetdb_sd_config

and postponed this idea

Comment thread config/config.go

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changes at config.go? this has nothing to do with the feature if i see right?

Comment thread main.go

caEnabled := cfg.PuppetCA.Host != ""

pdbClient := puppetdb.NewClient()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we create a pdbclient here, we could also provide it to pdbhandler so we don't need to instanciate it in there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants